clear all

** Set working directory: please set your own
/*
cd "~/Dropbox/sanctions_replication/"
*/
** Open dataset
use data/survey_clean.dta, clear

** Analyses
regr sanct_phis_vox_num pmoral_vox_num female_dummy age_calculated college spanish ///
canarias murcia andalucia balears valencia cataluna extremadura castilla_mancha ///
castilla_leon aragon rioja navarra pais_vasco cantabria asturias galicia, r
est store physical_moral

regr sanct_verb_vox_num pmoral_vox_num female_dummy age_calculated college spanish ///
canarias murcia andalucia balears valencia cataluna extremadura castilla_mancha ///
castilla_leon aragon rioja navarra pais_vasco cantabria asturias galicia, r
est store verbal_moral

regr sanct_insult_vox_num pmoral_vox_num female_dummy age_calculated college spanish ///
canarias murcia andalucia balears valencia cataluna extremadura castilla_mancha ///
castilla_leon aragon rioja navarra pais_vasco cantabria asturias galicia, r
est store insult_moral

regr sanct_avoid_vox_num pmoral_vox_num female_dummy age_calculated college spanish ///
canarias murcia andalucia balears valencia cataluna extremadura castilla_mancha ///
castilla_leon aragon rioja navarra pais_vasco cantabria asturias galicia, r
est store avoid_moral

regr sanct_deny_vox_num pmoral_vox_num female_dummy age_calculated college spanish ///
canarias murcia andalucia balears valencia cataluna extremadura castilla_mancha ///
castilla_leon aragon rioja navarra pais_vasco cantabria asturias galicia, r
est store deny_moral

regr sanct_gossip_vox_num pmoral_vox_num female_dummy age_calculated college spanish ///
canarias murcia andalucia balears valencia cataluna extremadura castilla_mancha ///
castilla_leon aragon rioja navarra pais_vasco cantabria asturias galicia, r
est store gossip_moral

* Make table
esttab physical_moral verbal_moral insult_moral avoid_moral deny_moral gossip_moral ///
using tables/tableb3.tex, tex nonumber keep (pmoral_vox_num _cons) ///
mtitles("Physical" "Verbal" "Insult"  "Gossip" "Deny help" "Avoid interact") ///
coeflabels(pmoral_vox_num "Beliefs about moral appropriateness" _cons "Constant") se ///
replace 
